package com.sunxu.exercise7;

/**
 * ${DESCRIPTION}
 *
 * @author Sun
 * @create 2017-08-02-21:44
 */
public class Test1 {
    public static void main(String[] args) {
        Object lock = new Object();
        ThreadA a = new ThreadA(lock);
        a.start();
        try {
            Thread.sleep(3000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        ThreadB b = new ThreadB(lock);
        b.start();
    }
}
